package com.pr.entity;

/**
 * @description:
 * @projectName:spring-skill
 * @see:com.pr.entity
 * @author:LXC
 * @createTime:2024/6/19 10:11
 * @version:1.0
 */
public class TestSynchornized {
    public  void testMethod(){
        synchronized (this){
            int i=10;
        }

    }

    public static void main(String[] args) {
        TestSynchornized testSynchornized = new TestSynchornized();
        testSynchornized.testMethod();
    }
}
